package tttrung43.yahoo.com.vuoncotich;

import android.view.View;

import com.google.android.gms.ads.AdListener;
import com.google.android.gms.ads.AdView;

public class AdsListener extends AdListener {
	AdView adView;
	public AdsListener(AdView adView){
		this.adView = adView;
	}
	@Override
	public void onAdFailedToLoad(int errorCode) {		
		super.onAdFailedToLoad(errorCode);
		adView.setVisibility(View.GONE);
	}

	@Override
	public void onAdLoaded() {
		super.onAdLoaded();
		adView.setVisibility(View.VISIBLE);
	}
}
